﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ControlTestFrm
{
    public partial class TestFrm : Form
    {
        public TestFrm()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            var me = e as MouseEventArgs;
            label1.Text = "button1点击";
        }

        private void ifButton1_Click(object sender, EventArgs e)
        {
            var me = e as MouseEventArgs;
            label1.Text = "ifButton1点击";
        }
    }
}
